package rhc.spider.signal.signalTouch;

import java.util.Collection;
import java.util.Map;

import rhc.spider.crawler.Crawler;
import rhc.spider.signal.SignalTouch;
import rhc.spider.signal.signalInterface.CrawlerCloseSignal;

public class CrawlerCloseSignalTouch implements SignalTouch<CrawlerCloseSignal>{

	@Override
	public void touchSignal(Collection<CrawlerCloseSignal> signalInterfaces,Map<String,Object> signalObject) {
		
		Crawler crawler=(Crawler) signalObject.get(CRAWLER);
		
		for(CrawlerCloseSignal signalInterface:signalInterfaces){
			signalInterface.crawlerClose(crawler);
		}
		
		signalObject.clear();
	}

}
